//
// Created by hjie on 23-12-27.
//

#include "media_stream.h"
#include "codec_context.h"

MediaStream::MediaStream()
{
    m_stream = nullptr;
    m_stream_index = -1;
}

int MediaStream::Index()
{
    return m_stream->index;
}

AVStream * MediaStream::AvStream()
{
    return m_stream;
}

std::shared_ptr<EncoderContext> MediaStream::Encoder()
{
    return m_encoder;
}

std::shared_ptr<DecoderContext> MediaStream::Decoder()
{
    return m_decoder;
}
